

package jetbrains.buildServer.server.rest.data.parameters;

import java.util.Collection;
import jetbrains.buildServer.serverSide.InheritableUserParametersHolder;
import jetbrains.buildServer.serverSide.Parameter;
import org.jetbrains.annotations.NotNull;

/**
 * @author Yegor.Yarko
 *         Date: 07/07/2016
 */
public class InheritableUserParametersHolderEntityWithParameters extends UserParametersHolderEntityWithParameters {
  @NotNull private final InheritableUserParametersHolder myEntity;

  public InheritableUserParametersHolderEntityWithParameters(@NotNull final InheritableUserParametersHolder entity) {
    super(entity);
    myEntity = entity;
  }

  @NotNull
  public Collection<Parameter> getOwnParametersCollection() {
    return myEntity.getOwnParametersCollection();
  }
}